package edu.zju.gis.dbfg.tileserver.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * @author Hu
 * @date 2019/11/27
 * Goetrellis 瓦片渲染可选择的设置
 **/
@Getter
@Setter
public class GeotrellisTileOptions {
    private String fieldType;

    // 对于离散值，需要定义一个值与色彩对应的渲染色带
    private Map<String, String> colorMap;

    // 对于连续值，需要定义起始值/终止值，stops的个数，目标色带或起始颜色/终止颜色
    private int min;
    private int max;
    private int colorRampIndex;
    private int stops;
    private String startColor;
    private String endColor;

    public GeotrellisTileOptions() {
        this.fieldType = "ERROR";
        this.min = 0;
        this.max = 100;
        this.colorRampIndex = -1;
        this.stops = 10;
        this.startColor = "9ccce1FF";
        this.endColor = "b1d9eaFF";
    }
}
